<?php echo $html->script(array('jquery', 'ckeditor/ckeditor.js', 'kcfinder/kcfinder.js')); ?>
<script type="text/javascript">
$(document).ready(function(){
	  $("#PostActive").click(function(){
	  	if(this.value == '2'){
			$('#hot_img').show();
		}
	  	else{
	  		$('#hot_img').hide();
		}
	  });
});
</script>
<div class="content-box">
	<div class="box-body">
		<div class="box-header clear">
				<ul class="tabs clear">
					<li><a href="#b">Trở lại</a></li>
				</ul>
			<h2>Thông tin bài viết</h2>
		</div>
		<div class="box-wrap clear" id="normalForm">
			<?php echo $form->create('Post', array('class'=>'validate-form form bt-space15', 'type'=>'file')) ?>
			<div class="columns clear bt-space15">
				<div class="col2-3">
					<?php 
						  
						echo $form->input('title', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Tiêu đề: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2', 'size'=>'80'));
						echo $form->input('category_id', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Danh mục: <span class="required">*</span>'), 'div'=>'form-field clear','options'=>$list_category, 'empty'=>'--Lựa chọn--', 'class'=>'required text fl-space2'));
						echo $form->input('image_file', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Hình ảnh: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'file', 'class'=>'form-textarea display'));
						echo $form->input('summary', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Sơ lược: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'textarea', 'class'=>'required text fl-space2', 'rows'=>'6', 'cols'=>'80'));
						echo $form->textarea('content', array('class'=>'ckeditor'));	
						echo $form->input('active', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Kích hoạt: <span class="required">*</span>'), 'div'=>'form-field clear', 'options'=>array( '2'=>'Tin nóng', '1'=>'Có', '0'=>'Không'), 'class'=>'required text fl-space2'));
					?>
					<div id="hot_img">
						<?php echo $form->input('hotimg', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Hình slide: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'file', 'class'=>'form-textarea display'));?>
					</div>				
					
				</div>
			</div>	
			
			<div class="rule2"></div>	
					
			<div class="form-field clear">
				<input type="submit" class="button red" value="Hoàn tất" />
			</div><!-- /.form-field -->																								
			
			<?php echo $form->end(); ?>
			
			</div><!-- end of box-wrap -->
	</div> <!-- end of box-body -->
</div> <!-- end of content-box -->